<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="enum" uri="http://www.daxia.com/enum"%>
<style>
.memberlist .row {
	background: #fff;
	border-bottom: 1px solid #ccc;
	padding: 10px 0;
	margin-left: 0px;
}
</style>
<%@include file="/common/head.jsp"%>

<c:set var="module" value="order" />
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="tab-content">
						<div id="companybox">
							<div id="wizard" style="width: 70%; margin-top: 20px;">
								<form action="${ctx }/admin/company/saveAudit?id=${n.id }" id="detail-form" class="form-horizontal" method="post">
									<input type="hidden" id="userId" />
									<fieldset style="position: relative;">
										<div class="row">
											<div class="col-sm-12">
												<div class="form-group">
													<label>公司名称 *</label> <input id="name" 
														type="text" class="form-control required" value="${n.name }">
												</div>
												<div class="form-group">
													<label class="form-group">公司所在地 *</label>
													<div class="form-group">
														<div class="col-sm-4" style="padding-left: 0;">
															<select  class="form-control required"
																id="provinceId" onchange="selectProvince(this);">
																<option value="">请选择省份</option>
																<c:forEach items="${provinces }" var="p">
																	<option value="${p.id }"
																		${n.province.id eq p.id ? 'selected' : '' }>${p.name }</option>
																</c:forEach>
															</select>
														</div>
														<div class="col-sm-4">
															<select  class="form-control required"
																id="cityId" onchange="selectCity(this);">
																<c:if test="${empty(n.city.id) }">
																<option value="">请选择城市</option>
																</c:if>
																<c:if test="${not empty(n.city.id) }">
																	<option value="${n.city.id }" 'selected'>${n.city.name }</option>
																</c:if>
															</select>
														</div>
														<div class="col-sm-4">
															<select  class="form-control required"
																id="districtId">
																<c:if test="${empty(n.district.id) }">
																<option value="">请选择区县</option>
																</c:if>
																<c:if test="${not empty(n.district.id) }">
																	<option value="${n.district.id }" 'selected'>${n.district.name }</option>
																</c:if>
															</select>
														</div>
													</div>
												</div>
												<div class="form-group">
													<label class="companylabel">公司注册地址 *</label> <input
														id="registerAddress"  type="text"
														class="form-control required" value="${registerAddress }e">
												</div>
												<div class="form-group">
													<label>公司办公地址 *</label> <input id="officeAddress"
														 type="text"
														class="form-control required" value="${n.officeAddress }">
												</div>
												<div class="form-group">
													<label>销售类型 *</label>
													<!-- <input id="confirm" name="confirm" type="text" class="form-control required"> -->
													${enum:detail('CompanySalesType', 'salesType', n.salesType) }
												</div>
												<div class="form-group">
													<label>公司网址 </label> <input id="webSite" name="webSite"
														type="text" class="form-control" value="${n.webSite }">
												</div>
												<div class="form-group">
													<label>公司人数 </label> ${enum:detail('CompanyQuantity', 'quantity', n.quantity) }
												</div>
												<div class="form-group">
													<label>公司行业 </label> ${enum:detail('CompanyIndustry', 'industry', n.industry) }
												</div>
												<div class="form-group">
													<label>公司性质 </label> ${enum:detail('CompanyNature', 'nature', n.nature) }
												</div>
												<div class="form-group">
													<label class="col-sm-12">证件上传*</label>
													<div class="col-sm-12">
														<input type="hidden"  id="images"
															value="${n.images }" />
														<div class="my-images" single="false"
															images="${n.images }" id="image" field="images"></div>
													</div>
												</div>
												<div class="form-group">请将营业执照、组织机构代码证、税务登记证、一般纳税人证明、开户许可证、
													开票信息及法人身份证的电子版上传（附件请不要超过10M）</div>
												<div class="form-group">
													<label>备注</label> <input id="remark" name="remark"
														type="text" class="form-control">
												</div>
												<!-- <div class="form-group">
                   		<label>验证码*</label>
                   		<input id="confirm" name="confirm" type="text" class="form-control">
                   </div> -->					<div class="form-group">
													<label>审核结果</label> ${enum:detail('AuditStatus', 'auditStatus', n.auditStatus) }
												</div>
												<div class="form-group">
													<label>审核备注</label> <input id="auditRemark" name="auditRemark"
														type="text" class="form-control">
												</div>
											</div>
										</div>
									</fieldset>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<%@include file="/common/foot.jsp"%>
	<script>
</script>
</body>
</html>